
import locale from './locale';

export default function getT(key) {
    const lang = window.localStorage.getItem('lang') || 'zh';
    return locale[lang][key] || '...';
}